package classdemo;

class math{

  public int num1;
    public int num2;
    public int num3;

    public int sub;
    public int sum;
    public int add(int num1,int num2){
        this.num1 = num1;
        this.num2 = num2;
        return  sum = num1+num2;
    }
    public int sub(int num1,int num2)
    {
        this.num1 = num1;
        this.num2 = num2;
        return sum = num1 - num2;
    }
}
public class demo3 {
    public static void main(String[] args) {
        math m1 = new math();
        System.out.println(m1.add(50, 60));
    }
}
